package org.firefligher.xscript;

import java.util.HashMap;
import java.util.Map;

public class VariableRegister {
	private Map<String, VariableContent> variables;
	
	public VariableRegister() {
		variables = new HashMap<String, VariableContent>();
	}
	
	public void addVariable(String name, VariableContent c) {
		variables.put(name, c);
	}
	
	public VariableContent getContent(String name) {
		return variables.get(name);
	}

	public boolean hasVariable(String name) {
		return variables.containsKey(name);
	}
}
